home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / SMILEYC.PAK / SMILE.ODL < prev    next >
Text File  |  1997-05-06  |  2KB  |  76 lines

  1. // Smile.odl : type library source for OLE Custom Control project.
  2.  
  3. // This file will be processed by the Make Type Library (mktyplib) tool to
  4. // produce the type library (Smile.tlb) that will become a resource in
  5. // Smile.ocx.
  6.  
  7. #include <olectl.h>
  8.  
  9. [ uuid(175CB000-BEED-11CE-9611-00AA004A75CF), version(1.0),
  10.   helpstring("Smile OLE Custom Control module"), control ]
  11. library SMILELib
  12. {
  13.     importlib(STDOLE_TLB);
  14.     importlib(STDTYPE_TLB);
  15.  
  16.     //  Primary dispatch interface for CSmileCtrl
  17.  
  18.     [ uuid(175CB001-BEED-11CE-9611-00AA004A75CF),
  19.       helpstring("Dispatch interface for Smile Control"), hidden ]
  20.     dispinterface _DSmile
  21.     {
  22.         properties:
  23.             // NOTE - ClassWizard will maintain property information here.
  24.             //    Use extreme caution when editing this section.
  25.             //{{AFX_ODL_PROP(CSmileCtrl)
  26.             [id(DISPID_BACKCOLOR), bindable, requestedit] OLE_COLOR BackColor;
  27.             [id(DISPID_FONT), bindable] IFontDisp* Font;
  28.             [id(DISPID_FORECOLOR), bindable, requestedit] OLE_COLOR ForeColor;
  29.             [id(DISPID_CAPTION), bindable, requestedit] BSTR Caption;
  30.             [id(DISPID_BORDERSTYLE), bindable, requestedit] short BorderStyle;
  31.             [id(1)] boolean Sad;
  32.             //}}AFX_ODL_PROP
  33.  
  34.         methods:
  35.             // NOTE - ClassWizard will maintain method information here.
  36.             //    Use extreme caution when editing this section.
  37.             //{{AFX_ODL_METHOD(CSmileCtrl)
  38.             [id(2)] void Beep();
  39.             [id(3)] void Wink(boolean bWink);
  40.             //}}AFX_ODL_METHOD
  41.  
  42.             [id(DISPID_ABOUTBOX)] void AboutBox();
  43.     };
  44.  
  45.     //  Event dispatch interface for CSmileCtrl
  46.  
  47.     [ uuid(175CB002-BEED-11CE-9611-00AA004A75CF),
  48.       helpstring("Event interface for Smile Control") ]
  49.     dispinterface _DSmileEvents
  50.     {
  51.         properties:
  52.             //  Event interface has no properties
  53.  
  54.         methods:
  55.             // NOTE - ClassWizard will maintain event information here.
  56.             //    Use extreme caution when editing this section.
  57.             //{{AFX_ODL_EVENT(CSmileCtrl)
  58.             [id(1)] void Outside();
  59.             [id(2)] void Inside(OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y);
  60.             //}}AFX_ODL_EVENT
  61.     };
  62.  
  63.     //  Class information for CSmileCtrl
  64.  
  65.     [ uuid(175CB003-BEED-11CE-9611-00AA004A75CF),
  66.       helpstring("Smile Control"), control ]
  67.     coclass Smile
  68.     {
  69.         [default] dispinterface _DSmile;
  70.         [default, source] dispinterface _DSmileEvents;
  71.     };
  72.  
  73.  
  74.     //{{AFX_APPEND_ODL}}
  75. };
  76.